a = [6,10,3,5,7,4,9,1,10,2]
print('origin list a:',a)
b = sorted(a)
print('after sorted(a):')
print('a:',a)
print('b:',b)
a.sort()
print('after a.sort():',a)


'''排序结果如下

origin list a: [6, 10, 3, 5, 7, 4, 9, 1, 10, 2]
after sorted(a):
a: [6, 10, 3, 5, 7, 4, 9, 1, 10, 2]
b: [1, 2, 3, 4, 5, 6, 7, 9, 10, 10]
after a.sort(): [1, 2, 3, 4, 5, 6, 7, 9, 10, 10]

'''